<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Message
{
	function msg($message, $redirectto = '', $time = 3)
	{
                $msg = "$message";
                $msg .= "<script>setTimeout(\"window.location.href ='$redirectto';\", " . ($time * 1000) . ");</script>";
                include_once APPPATH . 'views/admin/include/messager.php';
                exit ();
     }
}
 

 